<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/material/selectProcess" onsubmit="return dwzSearch(this, 'dialog');">
<div class="pageHeader">
    <input type="hidden" name="status" value="0"> 
        <div class="searchBar">
            <ul class="searchContent">
                <li style="width:270px;">
                    <label style="width:90px"><@label key='cmprocess_code.C,colon'>工艺编号：</@label></label>
                    <input  type="text" name="processCode" value="${condition.processCode!''}"/>
                </li>
                <li>
                    <label style="width:90px"><@label key='cmprocess_name.C,colon'>工艺名称：</@label></label>
                    <input  type="text" name="processText" value="${condition.processText!''}"/>
                </li>
                </ul>
                <ul class="searchContent" style=" height: 30px;">
                <li style="width:270px;">
                    <label style="width:90px"><@label key='workCenter_type.C,colon'>工作中心类型：</@label></label>
                    <select name="workCenterTypeCode">
                    <option value="" ><@label key='all.C'>所有</@label></option>
                    <#if workCenterType??>
                        <#list workCenterType as wct>
                            <option value="${wct.workCenterTypeCode!''}" <#if condition.workCenterTypeCode?? && condition.workCenterTypeCode == wct.workCenterTypeCode> selected</#if> >${wct.typeText!''}</option>
                        </#list>
                    </#if>
                    </select>
                </li>
                <li style="width:250px;"></li>
                <li  style="width:100px;"><div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key='query.B'>查询</@label></button></div></div></li>
                </ul>
            </tr>
        </table>
    </div>
</form>

    <table class="table border" targetType='dialog' width="100%" layoutH="162">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="100" orderField="processCode" ><@label key='cmprocess_code.C'>工艺编号</@label></th>
                <th width="100" orderField="processText"><@label key='cmprocess_name.C'>工艺名称</@label></th>
                <th width="100" orderField="workCenterTypeCode"><@label key='workCenterTypeCode.C'>工作中心类型编号</@label></th>
                <th width="100"><@label key='typeText.C'>工作中心类型名称</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as process>
            <tr target="process_id" rel="${process.processCode!''}">
                <td><input name="ids" value="{id:'${process.processCode!''}', name:'${process.processText!''}'}" type="checkbox"></td>
                <td>${process.processCode!''}</td>
                <td>${process.processText!''}</td>
                <td>${process.workCenterTypeCode!''}</td>
                <td>${process.typeText!''}</td>
            </tr>
        </#list>
        <#else>
        <tr target="process_id">
                        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
        </tr>
        </#if>
        <#else>
        <tr target="service_id">
        <td colspan="6" class="noData">======<@label key="noListData.C">列表无数据</@label>=====</td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/dialogPanelBar.html">
<div class="formBar">
        <ul>
            <li><div class="buttonActive"><div class="buttonContent"><button type="button" multLookup="ids" warn="<@label key='selectProcess.M'>请选择工艺</@label>"><@label key="ok.B">确定</@label></button></div></div></li>
            <li>
            <div class="buttonActiveGrey" >
                        <div class="buttonContent" >
                            <button class="close" type="button"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
            </li>
        
        </ul>
    </div>